package com.ruoyi.project.xcx.user.api;

import com.ruoyi.project.xcx.util.TokenUserUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/wx/api/")
@Slf4j
public class Test {
    @GetMapping(value = "/test")
    public String test(@RequestAttribute(value = "uid") String uid){
        log.info("test.{},uid={}", new Date(), uid);
        log.info("{}", TokenUserUtil.getUser());
        return System.currentTimeMillis() + "";
    }
}
